/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 删除 POST /api/position/deleteData */
export async function apiPositionDeleteDataUsingPost({
  body,
  options,
}: {
  body: API.ApiPositionBoApiPositionDeleteData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/api/position/deleteData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取 POST /api/position/getData */
export async function apiPositionGetDataUsingPost({
  body,
  options,
}: {
  body: API.ApiPositionBoApiPositionGetData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RApiPositionVo>('/api/position/getData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询 POST /api/position/pageData */
export async function apiPositionPageDataUsingPost({
  body,
  options,
}: {
  body: API.ApiPositionBoApiPositionPageData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoApiPositionVo>('/api/position/pageData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 添加 POST /api/position/saveData */
export async function apiPositionSaveDataUsingPost({
  body,
  options,
}: {
  body: API.ApiPositionBoApiPositionSaveData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/api/position/saveData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 修改 POST /api/position/updateData */
export async function apiPositionUpdateDataUsingPost({
  body,
  options,
}: {
  body: API.ApiPositionBoApiPositionUpdateData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/api/position/updateData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
